<?php
global $wpdb;
if(isset($_GET['action'])=="hotel")
{
	$term = null;	
	$term = $_GET['tab'];
	
	$num_post		= 3; 
	$post_type		= 'post';	 
	$taxonomy		= 'category'; 
	$field			= 'slug'; 
	//$term			= ''; 	
	$metakey		= $wpdb->prefix.'display'; 
	$metavalue		= 'display';
	$args = db_query_posts_in_terms_child_nopage($num_post, $post_type, $taxonomy, $field, $term, $metakey, $metavalue);
	query_posts($args);
	include_once TEMPLATEPATH.'/views/hotel/index-loop.php';
}
else if(isset($_GET['action'])=="tour")
{
	$term = null;	
	$term = $_GET['tab'];
	
	$num_post		= 6; 
	$post_type		= 'tour';	 
	$taxonomy		= 'category'; 
	$field			= 'slug'; 
	//$term			= ''; 	
	$metakey		= $wpdb->prefix.'display'; 
	$metavalue		= 'display';
	$args = db_query_posts_in_terms_child_nopage($num_post, $post_type, $taxonomy, $field, $term, $metakey, $metavalue);
	query_posts($args);
	include_once TEMPLATEPATH.'/views/tour/index-loop.php';	
}  
?>